package com.yunc.modules.sys.mapper;

import com.yunc.base.SuperMapper;
import com.yunc.modules.sys.entity.SysDept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysDeptMapper extends SuperMapper<SysDept> {

    String selectMaxCode(@Param("parentId") String parentId);

    List<SysDept> queryDeptList();

    List<String> listDeptByCode(@Param("deptCodeList") List<String> deptCodeList);

    List<SysDept> queryUserDeptList(@Param("userId") String userId);

    List<SysDept> listSysDeptByCode(@Param("deptCodeList") List<String> deptCodeList);
}
